package cn.wanho.service.exam;

import cn.wanho.rvo.ResultVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

public interface TeacherService {

    ResultVO updateStudentScore(Long subjectId, Integer score, Integer studentId, Integer userId);

    ResultVO queryAllStudent(Integer userId);
    /**
     * @author zl
     * 查询目前授课班级和当前阶段以及剩余时间
     */
    ResultVO queryRecentClass(HttpServletRequest request);

    /**
     * 录入分数
     */
    ResultVO uploadScore(Long subjectId, Integer studentId, Integer score, HttpServletRequest request);

    /**
     * 显示学生试卷答题情况
     */
    ResultVO queryPaperAnswer(Integer studentId, HttpServletRequest request);

    /**
     * 创建试卷
     */
    ResultVO createPaper(String paperName, String startTime, String endTime, MultipartFile file, HttpServletRequest request);

    /**
     * @author litianle
     */
    ResultVO passTeacher(Integer id,Integer tid);

    /**
     * @author litianle
     */
    ResultVO queryAllTeacher(Integer id);
}
